<template>
  <div class="box">
    <router-view></router-view>
  </div>
</template>

<script>
import { getAllChannelListAPI } from '@/api/index'
export default {
  created() {
    this.getChannelList()
  },
  methods: {
    async getChannelList() {
      try {
        const res = await getAllChannelListAPI()
        console.log(res)
      } catch (error) {
        console.log(error)
      }
    }
  }
}
</script>
<style scoped>
/* postcss只能针对style中的样式进行处理，对于行内样式不起作用 */
</style>>
